-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Add diff-api-snapshot action to danger #52045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@coado has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: This is a work in progress PR that adds breaking change detection to danger. The danger is ran on a base revision from which there is no easy access to the API snapshot from the PR. The Github action fetches the PR and stores the "current" snapshot in the temporary directory which is then used in the `diff-api-snapshot` script. It is compared to the previous snapshot from the base revision which can be easily accessed by reading from `packages/react-native/ReactNativeApi.d.ts`. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Test Plan: Tested on react-native fork with personal access token. {F1979339175} #16 Differential Revision: D76735630 Pulled By: coado
0d79ef4
to
e11aca5
Compare
This pull request was exported from Phabricator. Differential Revision: D76735630 |
@coado has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: This is a work in progress PR that adds breaking change detection to danger. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Reviewed By: huntie Differential Revision: D76735630 Pulled By: coado
631437c
to
71937d2
Compare
This pull request was exported from Phabricator. Differential Revision: D76735630 |
Summary: This diff commits our V2 JavaScript API snapshot for React Native. This is a new format and workflow that replaces the previous `public-api-test` Jest test. Please look at the file header for up-to-date instructions on updating the API snapshot. Changelog: [Internal] Reviewed By: huntie Differential Revision: D77532617
Summary: This diff adds excution of `yarn build-types --validate` to run RN JS API snapshot validation on CI. ### Motivation Detect react-native public API changes before they land. Changelog: [Internal] Reviewed By: huntie Differential Revision: D76340729
Summary: This diff deletes `public-api-test` for detecting changes in public API. It is replaced with public API snapshot validation (in D76340729) for better detection and understanding of changes that influence external interfaces. Changelog: [Internal] Reviewed By: huntie Differential Revision: D77531763
Summary: This is a work in progress PR that adds breaking change detection to danger. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Reviewed By: huntie Differential Revision: D76735630 Pulled By: coado
71937d2
to
8e4a9e7
Compare
This pull request was exported from Phabricator. Differential Revision: D76735630 |
Summary:
This PR connects breaking change detection with a danger bot. The action takes snapshot from
main
branch and from the PR as inputs todiff-api-snapshot
(saved in runner temp directory).Changelog:
[Internal]
Test Plan:
Tested on my react-native fork coado#19